home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 9 / FM Towns Free Software Collection 9.iso / t_os / shell / igo / gosource / minote.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-16  |  11.5 KB  |  484 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    note_windowId ;
  9. extern int    igo_oper() ;
  10. extern int    title_messageId[12] ;
  11. extern int    textcommentId[10] ;
  12.  
  13. #define ALIGN    4
  14. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  15.  
  16. /*    MMI_init 用データ    */
  17.  
  18. /*    ヘッダ    */
  19.  
  20. MMIINIT    initDataMINOTE = { "MmiInit",  23, 0 } ;
  21.  
  22. /* note_windowId */
  23.  
  24. static MMIPACKET d001 = {    ¬e_windowId,
  25.                             NULL,
  26.                             &MJ_WINDOWL40,
  27.                             OFFSET(WINDOWL40),
  28.                             MS_NONE
  29.                         } ;
  30. static WINDOWL40    d001d = {    MS_BTRIGHTL40 | MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_TITLEL40 | MS_CLOSEL40,
  31.                                0,  22, 175, 467, 8, 7, 9,
  32.                             MS_NONEL40,
  33.                             NULL,   0,   0,
  34.                                1,  17, 176, 446,
  35.                              128,  96, 640, 480,
  36.                             igo_oper,
  37.                             "添え書き",
  38.                         } ;
  39.  
  40. /* title_messageId[0] */
  41.  
  42. static MMIPACKET d002 = {    &title_messageId[0],
  43.                             ¬e_windowId,
  44.                             &MJ_MSGL40,
  45.                             OFFSET(MSGL40),
  46.                             MS_NONE
  47.                         } ;
  48. static MSGL40    d002d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  49.                                2,  40,  77,  57, 8,15, 8,
  50.                             MS_NONEL40,
  51.                             "対局記録",
  52.                                1,  12,  12,
  53.                             MS_NONEL40,
  54.                                5,   0
  55.                         } ;
  56.  
  57. /* title_messageId[1] */
  58.  
  59. static MMIPACKET d003 = {    &title_messageId[1],
  60.                             ¬e_windowId,
  61.                             &MJ_MSGL40,
  62.                             OFFSET(MSGL40),
  63.                             MS_NONE
  64.                         } ;
  65. static MSGL40    d003d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  66.                                2,  57,  51,  75, 8,15, 8,
  67.                             MS_NONEL40,
  68.                             "対局者 黒",
  69.                                1,  12,  12,
  70.                             MS_NONEL40,
  71.                                0,   0
  72.                         } ;
  73.  
  74. /* title_messageId[2] */
  75.  
  76. static MMIPACKET d004 = {    &title_messageId[2],
  77.                             ¬e_windowId,
  78.                             &MJ_MSGL40,
  79.                             OFFSET(MSGL40),
  80.                             MS_NONE
  81.                         } ;
  82. static MSGL40    d004d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  83.                                2,  75,  52,  93, 8,15, 8,
  84.                             MS_NONEL40,
  85.                             "対局者 白",
  86.                                1,  12,  12,
  87.                             MS_NONEL40,
  88.                                0,   0
  89.                         } ;
  90.  
  91. /* title_messageId[3] */
  92.  
  93. static MMIPACKET d005 = {    &title_messageId[3],
  94.                             ¬e_windowId,
  95.                             &MJ_MSGL40,
  96.                             OFFSET(MSGL40),
  97.                             MS_NONE
  98.                         } ;
  99. static MSGL40    d005d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  100.                                2,  94,  51, 109, 8,15, 8,
  101.                             MS_NONEL40,
  102.                             "対局開始",
  103.                                1,  12,  12,
  104.                             MS_NONEL40,
  105.                                0,   0
  106.                         } ;
  107.  
  108. /* title_messageId[4] */
  109.  
  110. static MMIPACKET d006 = {    &title_messageId[4],
  111.                             ¬e_windowId,
  112.                             &MJ_MSGL40,
  113.                             OFFSET(MSGL40),
  114.                             MS_NONE
  115.                         } ;
  116. static MSGL40    d006d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  117.                                4, 131,  46, 147, 8,15, 8,
  118.                             MS_NONEL40,
  119.                             "対局終了",
  120.                                1,  12,  12,
  121.                             MS_NONEL40,
  122.                                0,   0
  123.                         } ;
  124.  
  125. /* title_messageId[5] */
  126.  
  127. static MMIPACKET d007 = {    &title_messageId[5],
  128.                             ¬e_windowId,
  129.                             &MJ_MSGL40,
  130.                             OFFSET(MSGL40),
  131.                             MS_NONE
  132.                         } ;
  133. static MSGL40    d007d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  134.                                5, 171,  51, 186, 8,15, 8,
  135.                             MS_NONEL40,
  136.                             "対局場所",
  137.                                1,  12,  12,
  138.                             MS_NONEL40,
  139.                                0,   0
  140.                         } ;
  141.  
  142. /* title_messageId[6] */
  143.  
  144. static MMIPACKET d008 = {    &title_messageId[6],
  145.                             ¬e_windowId,
  146.                             &MJ_MSGL40,
  147.                             OFFSET(MSGL40),
  148.                             MS_NONE
  149.                         } ;
  150. static MSGL40    d008d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  151.                                5, 217,  51, 232, 8,15, 8,
  152.                             MS_NONEL40,
  153.                             "コミ",
  154.                                1,  12,  12,
  155.                             MS_NONEL40,
  156.                                0,   0
  157.                         } ;
  158.  
  159. /* title_messageId[7] */
  160.  
  161. static MMIPACKET d009 = {    &title_messageId[7],
  162.                             ¬e_windowId,
  163.                             &MJ_MSGL40,
  164.                             OFFSET(MSGL40),
  165.                             MS_NONE
  166.                         } ;
  167. static MSGL40    d009d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  168.                                6, 239,  52, 254, 8,15, 8,
  169.                             MS_NONEL40,
  170.                             "結果",
  171.                                1,  12,  12,
  172.                             MS_NONEL40,
  173.                                0,   0
  174.                         } ;
  175.  
  176. /* title_messageId[8] */
  177.  
  178. static MMIPACKET d010 = {    &title_messageId[8],
  179.                             ¬e_windowId,
  180.                             &MJ_MSGL40,
  181.                             OFFSET(MSGL40),
  182.                             MS_NONE
  183.                         } ;
  184. static MSGL40    d010d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  185.                                3, 276,  49, 291, 8,15, 8,
  186.                             MS_NONEL40,
  187.                             "コメント",
  188.                                1,  12,  12,
  189.                             MS_NONEL40,
  190.                                0,   0
  191.                         } ;
  192.  
  193. /* title_messageId[9] */
  194.  
  195. static MMIPACKET d011 = {    &title_messageId[9],
  196.                             ¬e_windowId,
  197.                             &MJ_MSGL40,
  198.                             OFFSET(MSGL40),
  199.                             MS_NONE
  200.                         } ;
  201. static MSGL40    d011d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  202.                               76,  43, 170,  56, 8, 7, 8,
  203.                             MS_NONEL40,
  204.                             "            ",
  205.                                1,  12,  12,
  206.                             MS_NONEL40,
  207.                                0,   0
  208.                         } ;
  209.  
  210. /* title_messageId[10] */
  211.  
  212. static MMIPACKET d012 = {    &title_messageId[10],
  213.                             ¬e_windowId,
  214.                             &MJ_MSGL40,
  215.                             OFFSET(MSGL40),
  216.                             MS_NONE
  217.                         } ;
  218. static MSGL40    d012d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  219.                                5, 192,  51, 207, 8,15, 8,
  220.                             MS_NONEL40,
  221.                             "置き石",
  222.                                1,  12,  12,
  223.                             MS_NONEL40,
  224.                                0,   0
  225.                         } ;
  226.  
  227. /* title_messageId[11] */
  228.  
  229. static MMIPACKET d013 = {    &title_messageId[11],
  230.                             ¬e_windowId,
  231.                             &MJ_MSGL40,
  232.                             OFFSET(MSGL40),
  233.                             MS_NONE
  234.                         } ;
  235. static MSGL40    d013d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  236.                                3, 261,  52, 276, 8,15, 8,
  237.                             MS_NONEL40,
  238.                             "アゲハマ                            ",
  239.                                1,  12,  12,
  240.                             MS_NONEL40,
  241.                                0,   0
  242.                         } ;
  243.  
  244. /* textcommentId[0] */
  245.  
  246. static MMIPACKET d014 = {    &textcommentId[0],
  247.                             ¬e_windowId,
  248.                             &MJ_TEXTL40,
  249.                             OFFSET(TEXTL40),
  250.                             MS_NONE
  251.                         } ;
  252. static TEXTL40    d014d =     {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_HORIL40 | MS_DSPONLYL40,
  253.                               58,  59, 170,  75, 8,15, 8,
  254.                             MS_FRAMEL40,
  255.                             0,
  256.                                0,   0,   0,   0,
  257.                                0,   0,   0,   0,   0,
  258.                                   -1,   0,   0,
  259.                                0,   0,   0,   0,
  260.                                0,
  261.                                0,   0,   0,   0,
  262.                                1,  12,  12,   0,   0,
  263.                                0,   0,   0,   0,   0,   0,   0,
  264.                                0,   0,   0,   0,
  265.                               24
  266.                         } ;
  267.  
  268. /* textcommentId[1] */
  269.  
  270. static MMIPACKET d015 = {    &textcommentId[1],
  271.                             ¬e_windowId,
  272.                             &MJ_TEXTL40,
  273.                             OFFSET(TEXTL40),
  274.                             MS_NONE
  275.                         } ;
  276. static TEXTL40    d015d =     {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_HORIL40 | MS_DSPONLYL40,
  277.                               58,  77, 170,  93, 8,15, 8,
  278.                             MS_FRAMEL40,
  279.                             0,
  280.                                0,   0,   0,   0,
  281.                                0,   0,   0,   0,   0,
  282.                                   -1,   0,   0,
  283.                                0,   0,   0,   0,
  284.                                0,
  285.                                0,   0,   0,   0,
  286.                                1,  12,  12,   0,   0,
  287.                                0,   0,   0,   0,   0,   0,   0,
  288.                                0,   0,   0,   0,
  289.                               24
  290.                         } ;
  291.  
  292. /* textcommentId[2] */
  293.  
  294. static MMIPACKET d016 = {    &textcommentId[2],
  295.                             ¬e_windowId,
  296.                             &MJ_TEXTL40,
  297.                             OFFSET(TEXTL40),
  298.                             MS_NONE
  299.                         } ;
  300. static TEXTL40    d016d =     {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_HORIL40 | MS_DSPONLYL40,
  301.                                3, 110, 171, 129, 8,15, 8,
  302.                             MS_FRAMEL40,
  303.                             0,
  304.                                0,   0,   0,   0,
  305.                                0,   0,   0,   0,   0,
  306.                                   -1,   0,   0,
  307.                                0,   0,   0,   0,
  308.                                0,
  309.                                0,   0,   0,   0,
  310.                                1,  12,  12,   0,   0,
  311.                                0,   0,   0,   0,   0,   0,   0,
  312.                                0,   0,   0,   0,
  313.                               24
  314.                         } ;
  315.  
  316. /* textcommentId[3] */
  317.  
  318. static MMIPACKET d017 = {    &textcommentId[3],
  319.                             ¬e_windowId,
  320.                             &MJ_TEXTL40,
  321.                             OFFSET(TEXTL40),
  322.                             MS_NONE
  323.                         } ;
  324. static TEXTL40    d017d =     {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_HORIL40 | MS_DSPONLYL40,
  325.                                4, 147, 170, 167, 8,15, 8,
  326.                             MS_FRAMEL40,
  327.                             0,
  328.                                0,   0,   0,   0,
  329.                                0,   0,   0,   0,   0,
  330.                                   -1,   0,   0,
  331.                                0,   0,   0,   0,
  332.                                0,
  333.                                0,   0,   0,   0,
  334.                                1,  12,  12,   0,   0,
  335.                                0,   0,   0,   0,   0,   0,   0,
  336.                                0,   0,   0,   0,
  337.                               24
  338.                         } ;
  339.  
  340. /* textcommentId[4] */
  341.  
  342. static MMIPACKET d018 = {    &textcommentId[4],
  343.                             ¬e_windowId,
  344.                             &MJ_TEXTL40,
  345.                             OFFSET(TEXTL40),
  346.                             MS_NONE
  347.                         } ;
  348. static TEXTL40    d018d =     {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_HORIL40 | MS_DSPONLYL40,
  349.                               58, 171, 169, 189, 8,15, 8,
  350.                             MS_FRAMEL40,
  351.                             0,
  352.                                0,   0,   0,   0,
  353.                                0,   0,   0,   0,   0,
  354.                                   -1,   0,   0,
  355.                                0,   0,   0,   0,
  356.                                0,
  357.                                0,   0,   0,   0,
  358.                                1,  12,  12,   0,   0,
  359.                                0,   0,   0,   0,   0,   0,   0,
  360.                                0,   0,   0,   0,
  361.                               24
  362.                         } ;
  363.  
  364. /* textcommentId[5] */
  365.  
  366. static MMIPACKET d019 = {    &textcommentId[5],
  367.                             ¬e_windowId,
  368.                             &MJ_TEXTL40,
  369.                             OFFSET(TEXTL40),
  370.                             MS_NONE
  371.                         } ;
  372. static TEXTL40    d019d =     {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_HORIL40 | MS_DSPONLYL40,
  373.                               58, 213, 170, 232, 8,15, 8,
  374.                             MS_FRAMEL40,
  375.                             0,
  376.                                0,   0,   0,   0,
  377.                                0,   0,   0,   0,   0,
  378.                                   -1,   0,   0,
  379.                                0,   0,   0,   0,
  380.                                0,
  381.                                0,   0,   0,   0,
  382.                                1,  12,  12,   0,   0,
  383.                                0,   0,   0,   0,   0,   0,   0,
  384.                                0,   0,   0,   0,
  385.                               24
  386.                         } ;
  387.  
  388. /* textcommentId[6] */
  389.  
  390. static MMIPACKET d020 = {    &textcommentId[6],
  391.                             ¬e_windowId,
  392.                             &MJ_TEXTL40,
  393.                             OFFSET(TEXTL40),
  394.                             MS_NONE
  395.                         } ;
  396. static TEXTL40    d020d =     {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_HORIL40 | MS_DSPONLYL40,
  397.                               58, 237, 169, 255, 8,15, 8,
  398.                             MS_FRAMEL40,
  399.                             0,
  400.                                0,   0,   0,   0,
  401.                                0,   0,   0,   0,   0,
  402.                                   -1,   0,   0,
  403.                                0,   0,   0,   0,
  404.                                0,
  405.                                0,   0,   0,   0,
  406.                                1,  12,  12,   0,   0,
  407.                                0,   0,   0,   0,   0,   0,   0,
  408.                                0,   0,   0,   0,
  409.                               24
  410.                         } ;
  411.  
  412. /* textcommentId[7] */
  413.  
  414. static MMIPACKET d021 = {    &textcommentId[7],
  415.                             ¬e_windowId,
  416.                             &MJ_TEXTL40,
  417.                             OFFSET(TEXTL40),
  418.                             MS_NONE
  419.                         } ;
  420. static TEXTL40    d021d =     {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_HORIL40 | MS_DSPONLYL40,
  421.                                3, 289, 171, 465, 8,15, 8,
  422.                             MS_FRAMEL40,
  423.                             0,
  424.                                0,   0,   0,   0,
  425.                                0,   0,   0,   0,   0,
  426.                                   -1,   0,   0,
  427.                                0,   0,   0,   0,
  428.                                0,
  429.                                0,   0,   0,   0,
  430.                                1,  12,  12,   0,   0,
  431.                                0,   0,   0,   0,   0,   0,   0,
  432.                                0,   0,   0,   0,
  433.                               24
  434.                         } ;
  435.  
  436. /* textcommentId[8] */
  437.  
  438. static MMIPACKET d022 = {    &textcommentId[8],
  439.                             ¬e_windowId,
  440.                             &MJ_TEXTL40,
  441.                             OFFSET(TEXTL40),
  442.                             MS_NONE
  443.                         } ;
  444. static TEXTL40    d022d =     {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_HORIL40 | MS_DSPONLYL40,
  445.                               59, 192, 170, 210, 8,15, 8,
  446.                             MS_FRAMEL40,
  447.                             0,
  448.                                0,   0,   0,   0,
  449.                                0,   0,   0,   0,   0,
  450.                                   -1,   0,   0,
  451.                                0,   0,   0,   0,
  452.                                0,
  453.                                0,   0,   0,   0,
  454.                                1,  12,  12,   0,   0,
  455.                                0,   0,   0,   0,   0,   0,   0,
  456.                                0,   0,   0,   0,
  457.                               24
  458.                         } ;
  459.  
  460. /* textcommentId[9] */
  461.  
  462. static MMIPACKET d023 = {    &textcommentId[9],
  463.                             ¬e_windowId,
  464.                             &MJ_TEXTL40,
  465.                             0,
  466.                             MS_NONE
  467.                         } ;
  468. static TEXTL40    d023d =     {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_HORIL40 | MS_DSPONLYL40,
  469.                               58, 259, 169, 277, 8,15, 8,
  470.                             MS_FRAMEL40,
  471.                             0,
  472.                                0,   0,   0,   0,
  473.                                0,   0,   0,   0,   0,
  474.                                   12,   0,   0,
  475.                                0,   0,   0,   0,
  476.                                0,
  477.                                0,   0,   0,   0,
  478.                                1,  12,  12,   0,   0,
  479.                                0,   0,   0,   0,   0,   0,   0,
  480.                                0,   0,   0,   0,
  481.                               24
  482.                         } ;
  483.  
  484.